import request from '@/utils/request'

// api地址
const api = {
	list: 'ant.paper/list',
	listUser: 'ant.paper/listUser',
	detail: 'ant.paper/detail',
		detail_ing: 'ant.paper/detail_ing',
	detail_answer: 'ant.paper/detail_answer',
	getCert: 'ant.paper/getCert',
	getPoster: 'ant.paper/getPoster',
	getPosterCert: 'ant.paper/getPosterCert',
	hand_paper: 'ant.paper/hand_paper',
	queu_answer: 'ant.paper/queu_answer',
	update_status: 'ant.paper/update_status',
}
export const listUser = param => {
	return request.get(api.listUser, param)
}

export const list = param => {
	return request.get(api.list, param)
}
export function getCert() {
	return request.get(api.getCert)
}
export function getPosterCert() {
	return request.get(api.getPosterCert)
}
export function getPoster(paperId) {
	return request.get(api.getPoster, {
		paperId
	})
}
export function detail_ing(paperId) {
	return request.get(api.detail_ing, {
		paperId
	})
}
export function detail(paperId) {
	return request.get(api.detail, {
		paperId
	})
}
export function detail_answer(paperId, id) {
	return request.get(api.detail_answer, {
		paperId,
		id
	})
}
export const hand_paper = (data) => {
	return request.post(api.hand_paper, {
		form: data
	})
}
export const queu_answer = (data) => {
	return request.post(api.queu_answer, {
		form: data
	})
}
export const update_status = (data) => {
	return request.post(api.update_status, {
		form: data
	})
}